<!DOCTYPE html>

<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

		<!-- Set the viewport width to device width for mobile -->
		<meta name="viewport" content="width=device-width" />
		
		<meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="los 2 negritos online" />
        <meta name="keywords" content="san nicolas,los 2 negritos,despensa,pizzeria" />
		<title>Los 2 Negritos: Panel de Administración</title>

		<!-- Included CSS Files (Compressed) -->
		<link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
		<?php  $this->headLink()->appendStylesheet('/stylesheets/jquery-ui-1.9.0.custom.css') ?>
		<?php  $this->headLink()->appendStylesheet('/stylesheets/foundation.min.css') ?>
		<?php echo $this->headLink()->appendStylesheet('/stylesheets/app.css') ?>
		


		<script src="<?php echo $this->baseUrl("javascripts/modernizr.foundation.js");?>"></script>
		<script src="<?php echo $this->baseUrl("javascripts/jquery.js");?>"></script>

		<!-- IE Fix for HTML5 Tags -->
		<!--[if lt IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
        
        
    </head>   
    <body id="home" class="home">
	
	<!-- Nav Bar -->	
    <nav class="top-bar">
		<div class="row">
			<ul>
				<li class="name"><a href="<?php echo $this->baseUrl("/");?>">Los Dos Negritos</a></li>
				<li class="toggle-topbar"><a href="#"></a></li>
			</ul>
			<section>
				<?php
				$auth = Zend_Auth::getInstance();

				if ($auth->hasIdentity()) {
					$identity = $auth->getIdentity();

					if (isset($identity)) {
				?>
				<ul class="left">
					<li><p class="welcome">Bienvenido, <em><?php echo $identity['usuario']; ?></em></p></li>
					<li><a href="<?php echo $this->baseUrl("/admin/panel");?>">Panel</a></li>
					<li class="has-dropdown">
						<a class="active" href="#">Productos</a>
						<ul class="dropdown">
							<li><a href="<?php echo $this->baseUrl("/admin/productoslistar");?>">Listado</a></li>
							<li><a href="<?php echo $this->baseUrl("/admin/productoscargar");?>">Cargar</a></li>
							<li class="has-dropdown">
								<a class="active" href="#">Categorias</a>
								<ul class="dropdown">
									<li><a href="<?php echo $this->baseUrl("/admin/categoriaslistar");?>">Listado</a></li>
									<li><a href="<?php echo $this->baseUrl("/admin/categoriascargar");?>">Cargar</a></li>
								</ul>
							</li>
						</ul>
					</li>
					
					<li class="has-dropdown">
						<a class="active" href="#">Ventas</a>
						<ul class="dropdown">
							<li><a href="<?php echo $this->baseUrl("/admin/pedidoslistar");?>">Pedidos</a></li>
							<li class="has-dropdown">
								<a class="active" href="#">Estados de Pedido</a>
								<ul class="dropdown">
									<li><a href="<?php echo $this->baseUrl("/admin/pedidosestadolistar");?>">Listado</a></li>
									<li><a href="<?php echo $this->baseUrl("/admin/pedidosestadocargar");?>">Cargar</a></li>
								</ul>
							</li>
							<li class="has-dropdown">
								<a class="active" href="#">Paises</a>
								<ul class="dropdown">
									<li><a href="<?php echo $this->baseUrl("/admin/paiseslistar");?>">Listado</a></li>
									<li><a href="<?php echo $this->baseUrl("/admin/paisescargar");?>">Cargar</a></li>
								</ul>
							</li>
							<li class="has-dropdown">
								<a class="active" href="#">Zonas</a>
								<ul class="dropdown">
									<li><a href="<?php echo $this->baseUrl("/admin/zonaslistar");?>">Listado</a></li>
									<li><a href="<?php echo $this->baseUrl("/admin/zonascargar");?>">Cargar</a></li>
								</ul>
							</li>
						</ul>
					</li>
					<li class="has-dropdown">
						<a class="active" href="#">Clientes</a>
						<ul class="dropdown">
							<li><a href="<?php echo $this->baseUrl("/admin/clienteslistar");?>">Listado</a></li>
							<li><a href="<?php echo $this->baseUrl("/admin/clientescargar");?>">Cargar</a></li>
						</ul>
					</li>
					<li class="has-dropdown">
						<a class="active" href="#">Administradores</a>
						<ul class="dropdown">
							<li><a href="<?php echo $this->baseUrl("/admin/administradoreslistar");?>">Listado</a></li>
							<li><a href="<?php echo $this->baseUrl("/admin/administradorescargar");?>">Cargar</a></li>
							<li class="has-dropdown">
								<a class="active" href="#">Auditorías</a>
								<ul class="dropdown">
									<li><a href="<?php echo $this->baseUrl("/admin/auditoriaproductoslistar");?>">Productos</a></li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
				<?php
						}
					}
								
				?>
				<ul class="right">
					<li><a class="anchorLink active" href="<?php echo $this->baseUrl("/");?>">Inicio</a></li> 
					<?php if (isset($identity)) { ?>
					<li><a class="anchorLink active" href="<?php echo $this->baseUrl("/cliente/salir");?>">Salir</a></li> 
					<?php } else { ?>
					<li><a class="anchorLink active" href="<?php echo $this->baseUrl("/cliente");?>">Ingreso Clientes</a></li> 
					<li><a class="anchorLink active" href="<?php echo $this->baseUrl("/cliente/registrar");?>">Registrarse</a></li> 
					<?php } ?>
				</ul>
			</section>
		</div>
	</nav>
    <?php echo $this->layout()->content; ?>
	
	<!-- Footer -->

	<footer class="row">
	<div class="twelve columns">
		<hr />
		<div class="row">
			<div class="six columns">
				<p>&copy; Copyright 2012 by Los 2 Negritos.</p>
			</div>
			<div class="six columns">
				<ul class="link-list right">
					<li><a href="<?php echo $this->baseUrl('/admin'); ?>">Administracion</a></li>
				</ul>
			</div>
		</div>
	</div>
	</footer>

	<!-- End Footer -->
                    
	<!-- Included JS Files (Uncompressed) -->
	<!--

	<script src="javascripts/jquery.js"></script>

	<script src="javascripts/jquery.foundation.mediaQueryToggle.js"></script>

	<script src="javascripts/jquery.foundation.forms.js"></script>

	<script src="javascripts/jquery.foundation.reveal.js"></script>

	<script src="javascripts/jquery.foundation.orbit.js"></script>

	<script src="javascripts/jquery.foundation.navigation.js"></script>

	<script src="javascripts/jquery.foundation.buttons.js"></script>

	<script src="javascripts/jquery.foundation.tabs.js"></script>

	<script src="javascripts/jquery.foundation.tooltips.js"></script>

	<script src="javascripts/jquery.foundation.accordion.js"></script>

	<script src="javascripts/jquery.placeholder.js"></script>

	<script src="javascripts/jquery.foundation.alerts.js"></script>

	<script src="javascripts/jquery.foundation.topbar.js"></script>

	-->

	<!-- Included JS Files (Compressed) -->
	<script src="<?php echo $this->baseUrl("javascripts/foundation.min.js");?>"></script>
	<script src="<?php echo $this->baseUrl("javascripts/jquery-ui-1.9.0.custom.js");?>"></script>

	<!-- Initialize JS Plugins -->
	<script src="<?php echo $this->baseUrl("javascripts/app.js");?>"></script>
	<!-- google analytics -->
	<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-36134975-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

	</script>
	<!-- end of google analytics -->

	</body>
</html>
